package com.nuoniu.sibanyun.entity.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @ClassName DynamicConditionDto
 * @Description TODO
 * @Authpr baiqiang
 * @Date 2020/6/22 18:03
 **/
@Data
@ApiModel("动态条件DTO")
public class DynamicConditionDto extends BaseEntity {

    @ApiModelProperty(value = "日期/时间范围传入值")
    private  Object[] rangDateVal;
    @ApiModelProperty(value = "传入的值")
    private String value;
    @ApiModelProperty(value = "字段来源 ")
    @TableField("source")
    private String source;
    @ApiModelProperty(value = "编码")
    @TableField("code")
    private String code;
    @ApiModelProperty(value = "字段分类")
    @TableField("type")
    private String type;
    @ApiModelProperty(value = "字段名称")
    @TableField("name")
    private String name;
    @ApiModelProperty(value = "字段值")
    @TableField("val")
    private String val;
    @ApiModelProperty(value = "数据类型 1.基础 2.完全自定义 3.继承 4.继承自定义")
    @TableField("data_type")
    private Integer dataType;
    @ApiModelProperty(value = "继承的自定义字段ID")
    @TableField("parent_id")
    private Integer parentId;
    @ApiModelProperty(value = "继承来源编码(例如：crm.name , crm.jcc)")
    @TableField("parent_code")
    private String parentCode;
    @ApiModelProperty(value = "继承来源名称(例如：客户_客户名称)")
    @TableField("parent_name")
    private String parentName;
    @ApiModelProperty(value = "启用 0：否，1：是")
    @TableField("on_off")
    private Boolean onOff;
    @ApiModelProperty(value = "是否作为条件查询 1:是 0:否")
    @TableField("is_search")
    private Boolean isSearch;

}
